package com.xiaofei.demo.concurrent_beauty.ch1_basic;

public class DaemonThreadExample {
    public static void main(String[] args) {
        Thread thread = new Thread(new Runnable(){
            @Override
            public void run(){
                for(;;){

                }
            }
        });
        thread.setDaemon(true);
        thread.start();
    }
}
